package com.vca.common.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author chenBing
 * @since 2022-09-19
 */
@Data
public class CourseTypeVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程类型主键")
    private Long id;

    @ApiModelProperty(value = "父级id")
    private Long pid;

    @ApiModelProperty(value = "课程类型名称")
    private String courseTypeName;

    @ApiModelProperty(value = "标签颜色")
    private String labelColor;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    private Boolean status;

    @JsonInclude(JsonInclude.Include.NON_EMPTY) //属性为 空（""）[] 或者为 NULL 都不序列化
    private List<CourseTypeVo> child = new ArrayList<>();

}
